<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="common.jsp"%>
	<script type="text/javascript">
		function add(){
		
			var deptname = document.getElementById("dept.deptName").value;
			var style = document.getElementById("style").value;
			if(deptname==null || deptname==""){
				document.getElementById("aa").innerHTML("*部门名不能为空");
				return false;
			}else{
					document.getElementById("aa").innerHTML = "";
				}
			if(style==null || style==""){
				document.getElementById("ee").innerHTML("*状态不能为空");
				return false;
			}else{
					document.getElementById("ee").innerHTML = "";
				}
		}
	
	</script>

	<p id="whereami">
	</p>

	<DIV class=content_top1>
		新增部门:  &nbsp;&nbsp;<font color="red">${message }</font>
	</DIV>
	<BR>
	<BR>
	<form action="deptAddAfterAction" method="post" onsubmit="return add()">
	<div id="content_right">
		<TABLE class=form_table cellSpacing=1 cellPadding=0 border=0>
			<TBODY>
				
				<TR>
					<TD class=tb_left>
						部门名称 ：
					</TD>
					<TD class=formtb_right colSpan=2>
						<INPUT class=inputgri name=dept.deptName id="dept.deptName" onblur="add()">
						&nbsp; &nbsp;
						<font id="aa" size="2" color="red"></font>
					</TD>
				</TR>
				
				<TR>
					<TD class=tb_left>
						管理员ID：
					</TD>
					<TD  colSpan=2 class=formtb_right>
						<s:select name="dept.employee.empId" theme="simple" headerKey="0" headerValue="==请选择==" list="elist" listKey="empId" listValue="empName"></s:select>
						&nbsp; &nbsp;
						<SPAN id=bb></SPAN>
					</TD>
				</TR>
				
				<TR>
					<TD class=tb_left>
						电话 ：
					</TD>
					<TD class=formtb_right colSpan=2>
						<INPUT class=inputgri name=dept.deptTel>
						&nbsp; &nbsp;
						<SPAN id=cc></SPAN>
					</TD>
				</TR>
				<TR>
					<TD class=tb_left>
						手机 ：
					</TD>
					<TD class=formtb_right colSpan=2>
						<INPUT class=inputgri name=dept.deptMobile>
						&nbsp; &nbsp;
						<SPAN id=dd></SPAN>
					</TD>
				</TR>
				<TR>
					<TD class=tb_left>
						传真 ：
					</TD>
					<TD class=formtb_right colSpan=2>
						<INPUT class=inputgri name=dept.deptFax>
					</TD>
				</TR>
				<TR>
					<TD class=tb_left>
						备注 ：
					</TD>
					<TD class=formtb_right colSpan=2>
						<TEXTAREA class=inputgri name=dept.deptRemark></TEXTAREA>
					</TD>
				</TR>
				<TR>
					<TD class=tb_left>
						状态 ：
					</TD>
					<TD class=formtb_right colSpan=2 >
						<INPUT class=inputgri name=dept.deptState id="style" onblur="add()">
						&nbsp; &nbsp;
						<SPAN id=ee></SPAN>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<P align=center>
			<INPUT class=button type=submit value=提交»»>
		</P>
		</div>
	</form>

<p>
	&nbsp;
</p>
<p>
</p>

